package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findALLUser();

    public User login(String username,String password);

    public User fingUserByUsername(String username);

    public int registerUser(User user);


    User emailExist(String email);

    User findUserByEmail(String email);

    public void sendEmailCode(String email);
}
